﻿<%@ Control Language="C#" ClassName="NewsImageFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataItemId" runat="server" Text="Item Id:" AssociatedControlID="dataItemId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataItemId" DataSourceID="ItemIdNewsItemDataSource" DataTextField="LangId" DataValueField="ItemId" SelectedValue='<%# Bind("ItemId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:NewsItemDataSource ID="ItemIdNewsItemDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataLangId" runat="server" Text="Lang Id:" AssociatedControlID="dataLangId" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataLangId" Text='<%# Bind("LangId") %>' MaxLength="2"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataImageUrl" runat="server" Text="Image Url:" AssociatedControlID="dataImageUrl" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataImageUrl" Text='<%# Bind("ImageUrl") %>' MaxLength="200"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataImageUrl" runat="server" Display="Dynamic" ControlToValidate="dataImageUrl" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataImageDescription" runat="server" Text="Image Description:" AssociatedControlID="dataImageDescription" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataImageDescription" Text='<%# Bind("ImageDescription") %>' MaxLength="200"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIsActive" runat="server" Text="Is Active:" AssociatedControlID="dataIsActive" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataIsActive" SelectedValue='<%# Bind("IsActive") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Yes" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


